<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link type="text/css" rel="stylesheet" href="<%=basePath %>statics/css/common/common-1.0.css">
    <link type="text/css" rel="stylesheet" href="<%=basePath %>statics/js/plug/jqueryUI/jquery-ui.css">
    <link type="text/css" rel="stylesheet" href="<%=basePath%>statics/js/plug/jqPaginator/jqPaginator.css"/>
    <link type="text/css" rel="stylesheet" href="<%=basePath %>statics/css/app/logChange/app_log_change.css">
    <script type="text/javascript" src="<%=basePath %>statics/js/plug/jquery-1.12.0.min.js"></script>
    <%-- <script type="text/javascript" src="<%=basePath %>statics/js/common/common.js"></script> --%>
    <script type="text/javascript" src="<%=basePath%>statics/js/common/common-1.0.js"></script>
    <script type="text/javascript" src="<%=basePath %>statics/js/plug/jqueryUI/jquery-ui.js"></script>
    <script type="text/javascript" src="<%=basePath%>statics/js/plug/jqPaginator/jqPaginator.js"></script>
    <script type="text/javascript" src="<%=basePath %>statics/js/app/logChange/app_log_change_list.js"></script>
    <script type="text/javascript">
        var pageNumber = ${page.pageNumber};
        var totalCount = ${page.totalCount};
        var pageSize = ${page.pageSize};
        var isFilter = ${isFilter};//是否通过表单进行查询
    </script>
</head>
<body style="width: 100%;height: 100%;">

	<div class="table_search_div">
        <form id="searchForm" action="">
           <table cellpadding="0" cellspacing="0">
	        	<tr>
	        	  <td>修改人的id：</td>
	        	  <td><input type="text" name="userId" value="${bean.userId}"></td>
                  <td>&nbsp;<button id="searchBtn">查询</button></td>
                </tr>
             </table>
        </form>
    </div>
    
    <div class="table_title_div">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
          	<td align="left">
          		<span>管理 </span>
          	</td>
          	<td align="right" valign="middle">
          	    <ul>
		            <shiro:hasPermission name="AppLogChange:create">
		                <li><button id="addBtn">添加</button></li>
		            </shiro:hasPermission>
		            <shiro:hasPermission name="AppLogChange:update">
		                <li><button id="editBtn">修改</button></li>
		            </shiro:hasPermission>
		            <shiro:hasPermission name="AppLogChange:delete">
		                <li><button id="deleteBtn">删除</button></li>
		            </shiro:hasPermission>
		        </ul>
          	</td>
          </tr>
        </table>
    </div>
    
    <shiro:hasPermission name="AppLogChange:view">
        <div class="table_list_div">
            <table id="appLogChangeTable" class="table_list" cellspacing='0' cellpadding="0" width='100%'>
                <tr>
                    <th style="width: 5%;min-width: 15px;"><input id="checkAll" type="checkbox"></th>
                    <th style="width: 5%;min-width: 30px;">序号</th>
                    <th style="">修改人的id</th>
                    <th style="">数据变更的表</th>
                    <th style="">变更的数据id</th>
                    <th style="">字段名</th>
                    <th style="">字段名的中文解释</th>
                    <th style="">未变更的值</th>
                    <th style="">变更后的值</th>
                    <th style="">T_APP_LOG的id</th>
                    <th style="">数据变更时间</th>
                    <th style="">未变更的真实值，与字典表相关字段</th>
                    <th style="">变更后的真实值，与字典表相关字段</th>
                    <th style="">是否显示,0:否,1:是</th>
                </tr>
                <c:forEach var="item" items="${page.items}" varStatus="status">
                    <tr>
                        <td><input id="${item.id}" type="checkbox"></td>
                        <td>${status.count}</td>
	                    <td>${item.userId}</td>
	                    <td>${item.targetTable}</td>
	                    <td>${item.targetId}</td>
	                    <td>${item.columnName}</td>
	                    <td>${item.columnNameChn}</td>
	                    <td>${item.oldValue}</td>
	                    <td>${item.newValue}</td>
	                    <td>${item.appLogId}</td>
	                    <td>${item.changeTime}</td>
	                    <td>${item.oldRealValue}</td>
	                    <td>${item.newRealValue}</td>
	                    <td>${item.status}</td>
                    </tr>
                </c:forEach>
                 <c:if test="${lastCount > 0}">
                	<c:forEach begin="1" end="${lastCount}" step="1" varStatus="status">
	                     <tr>
	                       <td>&nbsp;</td>
	                       <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
		                   <td>&nbsp;</td>
	                    </tr>
                	</c:forEach>
                </c:if>
                
            </table>
            <div>
                <ul class="pagination" id="pagination"></ul>
            </div>
        </div>
    </shiro:hasPermission>
    
    <shiro:hasPermission name="AppLogChange:create">
        <div id="addDialog" title="添加" class="table_edit_div">
            
        </div>
    </shiro:hasPermission>
    <shiro:hasPermission name="AppLogChange:update">
        <div id="updateDialog" title="更新" class="table_edit_div">

        </div>
    </shiro:hasPermission>
    
</body>
</html>